import { lazy } from "react";

let Home = lazy(()=>import('../pages/Home/Home.jsx'))
let Login = lazy(()=>import('../pages/Login/Login.jsx'))
let City = lazy(()=>import('../pages/City/City.jsx'))
let Error = lazy(()=>import('../pages/Error/Error.jsx'))
let Rq = lazy(()=>import('../pages/rq/Rq.jsx'))
let Xq = lazy(()=>import('../pages/xq/Xq.jsx'))

let List = lazy(()=>import('../pages/list/List.jsx'))
let Chengg = lazy(()=>import('../pages/chengg/Chengg.jsx'))
const routes= [
    {
        path:'/',
        element:<Home />
    },
    {
        path:'/chengg',
        element:<Chengg />
    },
    {
        path:'/list',
        element:<List />
    },
    {
        path:'/xq',
        element:<Xq />
    },
    {   
        path:'/rq',
        element:<Rq />
    },
    {
        path:'/login',
        element:<Login />
    },
    {
        path:'/city',
        element:<City />
    },
    {
        path:'*',
        element:<Error />
    }
]

export default routes